﻿using System;

namespace FlyingEye.MixingProcess.PowderProcess
{
    /// <summary>
    /// 粉料投料记录基类
    /// </summary>
    public abstract class PowderProcessRecordBase
    {
        /// <summary>
        /// 记录 ID
        /// </summary>
        public Guid Id { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 记录类别
        /// </summary>
        public abstract string RecordCategory { get; }

        /// <summary>
        /// 基地
        /// </summary>
        public int Site { get; set; }

        /// <summary>
        /// 设备资源号
        /// </summary>
        public string? DeviceId { get; set; }

        /// <summary>
        /// 记录信息
        /// </summary>
        public string? Message { get; set; }

        /// <summary>
        /// 记录日期
        /// </summary>
        public DateTime CreationDateTime { get; } = DateTime.Now;

        /// <summary>
        /// 品种
        /// </summary>
        public string? Variety { get; set; }

        /// <summary>
        /// 物料
        /// </summary>
        public string? Material { get; set; }

        /// <summary>
        /// 工单
        /// </summary>
        public string? Order { get; set; }

        /// <summary>
        /// 工艺步骤名称
        /// </summary>
        public string? ProcessName { get; set; }
    }
}
